package com.example.demo.service;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Collections;
import java.util.Map;

public class Test3Service {
    public Test3Service() {
        System.out.println("testservice3() init");
    }

    private static final DateTimeFormatter df = DateTimeFormatter.ofPattern("hhmmss a");
    private LocalDateTime localDateTime = LocalDateTime.now();

    private static int a = 1;
    private static String str = "1str";
    private String str2 = "service1";

    public Map<String, String> service2() {
        System.out.println("service1===" + df.format(localDateTime));
        System.out.println("a=" + a + ", str=" + str + ", str2=" + str2);
        a = 11;
        str = "11str";
        str2 = "service11";
        System.out.println("a=" + a + ", str=" + str + ", str2=" + str2);
        return Collections.emptyMap();
    }
}
